import java.io.*;
import java.util.*;

public class Tuple{
	ArrayList<Integer> inputList;
	ArrayList<Integer> outputList;

	public Tuple(){
		inputList = new ArrayList<Integer>();
		outputList = new ArrayList<Integer>();
	}

	public void print(){
		System.out.println("<"+inputList+", "+outputList+">");
	}

	public void setInputList(ArrayList<Integer> k){
		inputList=k;
	}
	
	public void setOutputList(ArrayList<Integer> k){
		outputList=k;
	}
	
	public void set(ArrayList<Integer> k, int i){
		if (i==1)
			inputList=k;
		else
			outputList=k;
	}
	
	public ArrayList<Integer> getInputList(){
		return inputList;
	}
	
	public ArrayList<Integer> getOutputList(){
		return outputList;
	}
	
	public ArrayList<Integer> get(int i){
		if (i==1)
			return inputList;
		else
			return outputList;
	}

}
